<#include "header.htm"/>




			<form action="${JForumContext.encodeURL("/jforum")}" method="post" name="pm_read" id="pm_read">
				<input type="hidden" name="module" value="${moduleName}" />
				<input type="hidden" name="action" value="delete" />
	


<fieldset class="display-options">
	
	<h5>
			<a href="${JForumContext.encodeURL("/pm/inbox")}">${I18n.getMessage("PrivateMessage.inbox")}</a>
			<span style="color: #28313F;">&nbsp;&bull;&nbsp;</span>	<a href="${JForumContext.encodeURL("/pm/sentbox")}">${I18n.getMessage("PrivateMessage.sentbox")}</a>
    </h5>



		</fieldset>

<div class="topic-actions">
		<div class="buttons">
			<div class="newpm-icon"><a href="${JForumContext.encodeURL("/pm/send")}"><span></span>${I18n.getMessage("PrivateMessage.composeMessage")}</a></div>
		    <div class="pmreply-icon"><a title="Reply to message" href="${JForumContext.encodeURL("/pm/reply/${pm.id}")}"><span></span>${I18n.getMessage("PrivateMessage.replyTo")}</a></div>
		</div>
	
</div>

<div class="post pm bg2 <#if pm.fromUser.isOnline()>online</#if>">
<div class="inner"><span class="corners-top"><span></span></span>

	<div class="postbody">

		
		<ul class="profile-icons">
			<li class="delete-icon">
			    <input type="hidden" value="${pm.id}" name="id" />
				<a href="#" onclick="document.getElementById('pm_read').submit();" name="delete"><span>${I18n.getMessage("PrivateMessage.removeMessage")}</span></a>
			</li>
			<li class="quote-icon">
			    <a href="${JForumContext.encodeURL("/pm/quote/${pm.id}")}" title="${I18n.getMessage("PrivateMessage.quote")}"><span>${I18n.getMessage("PrivateMessage.quote")}</span></a>
			</li>
		</ul>
		

		<h3 class="first">${pm.post.subject?html}</h3>

		<p class="author">
			<strong>${I18n.getMessage("PrivateMessage.sent")}:</strong> ${pm.formatedDate}
			<br><strong>${I18n.getMessage("PrivateMessage.from")}:</strong> <a href="${JForumContext.encodeURL("/user/profile/${pm.fromUser.id}")}" style="color: #AA0000;" class="username-coloured">${pm.fromUser.username}</a>
			<br><strong>${I18n.getMessage("PrivateMessage.to")}:</strong> <a href="${JForumContext.encodeURL("/user/profile/${pm.toUser.id}")}" style="color: #AA0000;" class="username-coloured">${pm.toUser.username}</a>&nbsp;
		</p>


		<div class="content">${pm.post.text}</div>

		<#if (pm.fromUser.attachSignatureEnabled && pm.fromUser.signature?exists && pm.post.isSignatureEnabled())>
			<div id="sig2" class="signature">${pm.fromUser.signature}</div>
		</#if>

		
		
	</div>

			<dl class="postprofile">
			<dt>
				<a href="${JForumContext.encodeURL("/user/profile/${pm.fromUser.id}")}" style="color: #AA0000;" class="username-coloured">${pm.fromUser.username?html}</a>
			</dt>
			
	        <#if (pm.fromUser.avatar?exists && pm.fromUser.avatar?length > 0)>
	        	<#if pm.fromUser.isExternalAvatar() || pm.fromUser.avatar.startsWith("http://")>
	        		<#if avatarAllowExternalUrl>
	        			<dd><img src="${pm.fromUser.avatar?html}" border="0" alt="[Avatar]" /></dd>
	        		</#if>
	        	<#else>
	        		<dd><img src="${contextPath}/images/avatar/${pm.fromUser.avatar}" border="0" alt="[Avatar]" /></dd>
	        	</#if>
	        </#if>

			<#if pm.fromUser.id != 1>
				<dd>${rank.getRankTitle(pm.fromUser.rankId, pm.fromUser.totalPosts)}</dd>
			</#if>
			
		<dd>&nbsp;</dd>

        <#if pm.fromUser.id != 1>
        	<dd><strong>${I18n.getMessage("PostShow.userTotalMessages")}:</strong> ${pm.fromUser.totalPosts}</dd>
	        <dd><strong>${I18n.getMessage("PostShow.userRegistrationDate")}</strong>: ${pm.fromUser.registrationDate}</dd>
        </#if>
        <#if (pm.fromUser.from?exists && pm.fromUser.from?length > 0)>
	        <dd><strong>${I18n.getMessage("PostShow.userFrom")}:</strong> ${pm.fromUser.from?html}</dd>
	    </#if>
	    <#if pm.post.userIp?exists && isModerator>
	    	<dd><strong>${I18n.getMessage("PostShow.userIP")}:</strong> ${pm.post.userIp}</dd>
	    </#if>

			<dd>
				<ul class="profile-icons">
                   <li class="pm-icon"><a href="${JForumContext.encodeURL("/pm/sendTo/${pm.fromUser.id}")}"></a></li>
                   
                   					
				
		<#if (pm.fromUser.isViewEmailEnabled() && pm.fromUser.email?exists && pm.fromUser.email?length > 0)>
			<#assign e = pm.fromUser.email.split("@")/>

			<#if e?size == 2>
				<li class="email-icon"><a href="javascript:sendEmail('${e[0]}', '${e[1]}');"></a></li>
			</#if>
		</#if>
		
		<#if (pm.fromUser.webSite?exists && pm.fromUser.webSite?length > 0)>
		    <li class="web-icon"><a href="${pm.fromUser.webSite?html}" ></a></li>
		</#if>
		
		<#if (pm.fromUser.yim?exists && pm.fromUser.yim?length > 0)>
		    <li class="yim-icon"><a href="http://edit.yahoo.com/config/send_webmesg?.target=${pm.fromUser.yim?html}&amp;.src=pg" ></a></li>
		</#if>

		<#if (pm.fromUser.aim?exists && pm.fromUser.aim?length > 0)>
		    <li class="aim-icon"><a href="https://my.screenname.aol.com/_cqr/login/login.psp" ></a></li>
		</#if>
		
		<#if (pm.fromUser.msnm?exists && pm.fromUser.msnm?length > 0)>
		    <li class="msnm-icon"><a href="${JForumContext.encodeURL("/user/profile/${pm.fromUser.id}")}" ></a></li>
		</#if>
		
		<#if (pm.fromUser.icq?exists && pm.fromUser.icq?length > 0)>
		    <li class="icq-icon"><a href="http://wwp.icq.com/scripts/search.dll?to=${pm.fromUser.icq?html}"></a></li>
		</#if>			
				</ul>
			</dd>
		

		</dl>

	<div class="back2top"><a href="#top" class="top" title="Top">Top</a></div>

	<span class="corners-bottom"><span></span></span></div>
</div>

<div class="topic-actions">

	<fieldset class="display-actions">
	
		<div class="buttons">
			<div class="newpm-icon"><a href="${JForumContext.encodeURL("/pm/send")}"><span></span>${I18n.getMessage("PrivateMessage.composeMessage")}</a></div>
		    <div class="pmreply-icon"><a title="Reply to message" href="${JForumContext.encodeURL("/pm/reply/${pm.id}")}"><span></span>${I18n.getMessage("PrivateMessage.replyTo")}</a></div>
		</div>
		

	</fieldset>
	
</div>


</form>


<#include "bottom.htm"/>
